﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Record3Detail.aspx.cs" Inherits="Manage_Emp3_Record3Detail" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
     <script type="text/javascript">
         function checkForm() {
             var control = document.getElementById("txttitle");
             if (control.value.length == 0) {
                 alert("标题不能为空！");
                 control.focus();
                 return false;
             }

         }
         function checkOpenTimeAndCenter() {
             var period = document.getElementById("txtOpenTime");
             var center = document.getElementById("ddlcenter");
             var reg = /^([2-9]\d{3})(0[1-9]|1[0-2])$/;
             if (period.value.length == 0) {
                 alert("开课时间不能为空！")
                 period.focus();
                 return false;
             }
             if (!reg.test(period.value)) {
                 alert("开课时间格式不正确，正确的格式形如：201206！")
                 period.focus();
                 return false;
             }
             if (center.value == 0) {
                 alert("请选择所属指挥中心！")
                 center.focus();
                 return false;
             }
         }
  </script>
    <link rel="stylesheet" type="text/css" href="../skin/css/base.css" />
    <style type="text/css">
        .style1
        {
            width: 130px;
        }
        .style2
        {
            width: 242px;
        }
        .style3
        {
            width: 47px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"  EnableScriptGlobalization="True" EnableScriptLocalization="True">
        </asp:ScriptManager>
 <asp:UpdatePanel ID="up1" runat="server" >
    <ContentTemplate>
     <table width="98%" border="0" cellpadding="0" cellspacing="1" bgcolor="#D1DDAA" align="center" >
        <tr>
            <td height="26" background="../skin/images/newlinebg3.gif">
                <table width="98%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td align="center"><span style="font-size:14px; font-weight:bold">课程记录详细信息</span></td>
                        <td  align="right"  style="width:60px">
                        <asp:Button ID="btnreturn" class="coolbg_add" runat="server" Text="返回列表" 
                                onclick="btnreturn_Click"/>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
     
       <!--  提交 -->
      <table id="tbladdClassRecord"  runat="server" width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px;">
       <tbody style="width:100%">
               
        <tr align='center' style="width:100%" bgcolor="#FFFFFF" onmousemove="javascript:this.bgColor='#FCFDEE';" onmouseout="javascript:this.bgColor='#FFFFFF';" height="22" >
          <td width="13%" align="left">编号(自动编号)：</td>
           <td width="15%" align="left">
              <asp:Label ID="lblNum" runat="server"></asp:Label>
            </td>
            <td width="13%" align="left">标题：</td>
           <td width="35%" align="left">
             <asp:TextBox ID="txttitle" runat="server" Width="250px"></asp:TextBox>
            </td>
          <td width="24%" align="left" colspan="3"><asp:Button ID="btnSave" runat="server" Text="保存" OnClientClick="return checkForm();false" onclick="btnsave_Click" /></td>
         
        </tr>
      </tbody> 
      </table>
  
     <table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px">
   
    <tr bgcolor="#E7E7E7" style="border-bottom:none">
	    <td height="24"  background="../skin/images/tbg.gif">&nbsp;课程记录列表</td>
    </tr>
    
    <tr style="background-color:#ffffff">
    <td >
          <asp:GridView ID="GridView1" runat="server" Width="100%" CellPadding="4" BorderColor="#D1DDAA"  
                            AutoGenerateColumns="False" OnRowCancelingEdit="GridView1_RowCancelingEdit"
                            OnRowEditing="GridView1_RowEditing" 
              OnRowUpdating="GridView1_RowUpdating" OnRowDeleting="GridView1_RowDeleting"
                            DataKeyNames="RecordId"   SelectedIndex="0" 
              OnRowDataBound="GridView1_RowDataBound" GridLines="Both" 
              AllowPaging="False" PageIndex="1" AllowSorting="true" 
              onsorting="GridView1_Sorting" onrowcommand="GridView1_RowCommand"  >
                            <Columns>
                      <%--          <asp:TemplateField HeaderText="选择" >
                                    <ItemTemplate>
                                          <asp:CheckBox ID="chkID1" runat="server" />
                                          <asp:HiddenField ID="hdfRecordId" runat="server" Value='<%#Eval("RecordId") %>' />
                                    </ItemTemplate>
                                    
                                    <ItemStyle width="40px" HorizontalAlign="Center"  />
                                </asp:TemplateField>--%>
                                 <asp:TemplateField HeaderText="课程类型" SortExpression="ClassTypeName">
                                    <ItemTemplate>
                                        <asp:Label ID="lblClassTypeName" runat="server" Text='<%# Eval("ClassTypeName") %>'></asp:Label>
                                    </ItemTemplate>
                                  
                                </asp:TemplateField>
                                  <asp:TemplateField HeaderText="课程编号" SortExpression="ClassCode">
                                    <ItemTemplate>
                                        <asp:Label ID="lblClassCode" runat="server" Text='<%# Eval("ClassCode") %>'></asp:Label>
                                     </ItemTemplate> 
                                      <EditItemTemplate>
                                         <asp:HiddenField ID="hdfClassId" runat="server" Value='<%#Eval("ClassId") %>' />
                                         <asp:TextBox ID="txtClassCode" Width="63px" runat="server"  Text='<%# Eval("ClassCode") %>'></asp:TextBox>
                                         <asp:Button ID="lbtnselectclass" ForeColor="red"  runat="server" Text="选择课程" CommandName="selectClass" />
                                        
                                    </EditItemTemplate>
                                </asp:TemplateField>
                               
                                <asp:TemplateField HeaderText="课程名称" SortExpression="ClassName">
                                    <ItemTemplate>
                                        <asp:Label ID="lblClassName" runat="server" Text='<%# Eval("ClassName") %>'></asp:Label>
                                       
                                    </ItemTemplate>
                               </asp:TemplateField>
                               <asp:TemplateField HeaderText="适合员工级别" SortExpression="EmpLevelName">
                                    <ItemTemplate>
                                        <asp:Label ID="lblEmpLevelName" runat="server" Text='<%# Eval("EmpLevelName") %>'></asp:Label>
                                       
                                    </ItemTemplate>
                                     <EditItemTemplate>
                                         <asp:HiddenField ID="hdfEmpLevelId" runat="server" Value='<%#Eval("EmpLevelId") %>' />
                                         <asp:DropDownList ID="ddlEmpLevel" runat="server" ></asp:DropDownList>
                                    </EditItemTemplate>
                               </asp:TemplateField>
                                <asp:TemplateField HeaderText="导师类型" SortExpression="TeacherTypeName">
                                    <ItemTemplate>
                                        <asp:Label ID="lblTeacherTypeName" runat="server" Text='<%# Eval("TeacherTypeName") %>'></asp:Label>
                                    </ItemTemplate>
                                      <EditItemTemplate>
                                        <asp:DropDownList ID="ddlTeacherType" runat="server"></asp:DropDownList>
                                        <asp:HiddenField ID="hdfTeacherTypeId" runat="server" Value='<%#Eval("TeacherTypeId") %>' />
                                    </EditItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="导师员工编号" SortExpression="TeacherCode">
                                    <ItemTemplate>
                                        <asp:Label ID="lblTeacherCode" runat="server" Text='<%# Eval("TeacherCode") %>'></asp:Label>
                                    </ItemTemplate>
                                      <EditItemTemplate>
                                       <asp:TextBox ID="txtTeacherCode" runat="server" Width="63px" Text='<%#Eval("TeacherCode") %>'></asp:TextBox>
                                      
                                       <asp:Button ID="lbtnselecteteacher" ForeColor="red"  runat="server" Text="选择导师" CommandName="selectTeacher" />
                                    </EditItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="导师姓名" SortExpression="TeacherName">
                                    <ItemTemplate>
                                        <asp:Label ID="lblTeacherName" runat="server" Text='<%# Eval("TeacherName") %>'></asp:Label>
                                    </ItemTemplate>
                                      <EditItemTemplate>
                                        <asp:TextBox ID="txtTeacherName" Width="50px" runat="server" Text='<%# Eval("TeacherName") %>' ></asp:TextBox>
                                    </EditItemTemplate>
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="课程小时数" SortExpression="Time">
                                    <ItemTemplate>
                                        <asp:Label ID="lblTime" runat="server" Text='<%# Eval("Time") %>'></asp:Label>
                                    </ItemTemplate>
                                     <EditItemTemplate>
                                        <asp:TextBox ID="txtTime" runat="server" Width="30px" Text='<%# Eval("Time") %>' ></asp:TextBox>
                                    </EditItemTemplate>
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="课程满意度" SortExpression="Satisficing">
                                    <ItemTemplate>
                                        <asp:Label ID="lblSatisficing" runat="server" Text='<%# Eval("Satisficing") %>'></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:TextBox ID="txtSatisficing" Width="50px" runat="server" Text='<%# Eval("Satisficing") %>' ></asp:TextBox>
                                    </EditItemTemplate>
                                </asp:TemplateField>
                                
                                 <asp:TemplateField HeaderText="培训人次" SortExpression="FactTimes">
                                    <ItemTemplate>
                                        <asp:Label ID="lblFactTimes" runat="server" Text='<%# Eval("FactTimes") %>'></asp:Label>
                                    </ItemTemplate>
                                     <EditItemTemplate>
                                        <asp:TextBox ID="txtFactTimes" Width="30px" runat="server" Text='<%# Eval("FactTimes") %>' ></asp:TextBox>
                                    </EditItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="所属指挥中心" SortExpression="CenterName">
                                    <ItemTemplate>
                                        <asp:Label ID="lblCenterName" runat="server" Text='<%# Eval("CenterName") %>'></asp:Label>
                                        <asp:HiddenField ID="hdfCenterId" runat="server" Value='<%#Eval("CenterId") %>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="开课城市" SortExpression="CityName">
                                    <ItemTemplate>
                                        <asp:Label ID="lblCityName" runat="server" Text='<%# Eval("CityName") %>'></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:HiddenField ID="hdfcityId" runat="server" Value='<%#Eval("CityId") %>' />
                                        <asp:TextBox ID="txtcityName" Width="63px" runat="server" Text='<%#Eval("CityName") %>'></asp:TextBox>
                                       
                                         <asp:Button ID="lbtnselectCity" ForeColor="red"  runat="server" Text="选择开课城市" CommandName="selectCity" />
                                    </EditItemTemplate>
                                </asp:TemplateField>
								<asp:TemplateField HeaderText="开课时间" SortExpression="OpenTime">
                                    <ItemTemplate>
                                        <asp:Label ID="lblOpenTime" runat="server" Text='<%#Eval("OpenTime")%>'></asp:Label>
                                    </ItemTemplate>
                                     <EditItemTemplate>
                                        <asp:TextBox ID="txtOpenTime" Width="50px" runat="server" Text='<%# Eval("OpenTime") %>' ></asp:TextBox>
                                    </EditItemTemplate>
                                </asp:TemplateField>
								
                                <asp:CommandField   HeaderText="操作" ItemStyle-HorizontalAlign="Center" />
                                
                            </Columns>
                             <PagerSettings FirstPageText="" LastPageText="" NextPageText="" PreviousPageText="" />
                            <RowStyle Height="20px" BackColor="#FFFFFF"  ForeColor="#000000" />
                            <FooterStyle BackColor="#FFFFFF" Font-Bold="True" ForeColor="White" />
                            <EditRowStyle BackColor="#FCFDEE" />
                            <SelectedRowStyle BackColor="#FFFFFF"  ForeColor="#000000" />
                            <PagerStyle BackColor="#FCFDEE" ForeColor="White" HorizontalAlign="Center" />
                            <HeaderStyle BackColor="#FCFDEE"  ForeColor="000000" />
                            <AlternatingRowStyle BackColor="#FCFDEE" ForeColor="#000000" />
                                            </asp:GridView>
      </td>
   </tr>
    <%-- <tr bgcolor="#FAFAF1">
    <td height="28"  style=" padding-left:14px">
	    <asp:CheckBox ID="selectAll1" runat="server" Enabled="false"  Text="全选" 
            oncheckedchanged="selectAll1_CheckedChanged" AutoPostBack="true" />&nbsp;
          <asp:Button class="coolbg" ID="Button1" Enabled="false" OnClientClick="return confirm('你确定要删除选择课程吗?');" runat="server"
                          Text="批量删除"  OnClick="btnDeleteMass_Click"/>
    </td>
    </tr>
    --%></table>
    <table width="98%" border="0" cellpadding="2" cellspacing="1"  align="center" style="margin-top:8px">
   
    <tr  style="border-bottom:none">
	    <td height="24" style=" text-align:right"> 
           <asp:Button ID="btnadd" runat="server" Text="继续添加" 
            onclick="btnadd_Click" /></td>
    </tr>
    </table>
    
       <table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px">
   
    <tr bgcolor="#E7E7E7" style="border-bottom:none">
	    <td height="24"  background="../skin/images/tbg.gif">&nbsp;预添加课程记录列表</td>
        <asp:HiddenField ID="hdfeditflag" runat="server" Value="0" />
    </tr>
    
    <tr style="background-color:#ffffff">
    <td>
          <asp:GridView ID="GridView2" runat="server" Width="100%" CellPadding="4" BorderColor="#D1DDAA"  
                            AutoGenerateColumns="False" OnRowCancelingEdit="GridView2_RowCancelingEdit"
                            OnRowEditing="GridView2_RowEditing" 
              OnRowUpdating="GridView_RowUpdating" OnRowDeleting="GridView2_RowDeleting"
                            DataKeyNames="RecordId"   SelectedIndex="0" 
              OnRowDataBound="GridView2_RowDataBound" GridLines="Both" 
              AllowPaging="False" PageIndex="1" AllowSorting="true" 
              onsorting="GridView2_Sorting" onrowcommand="GridView2_RowCommand"  >
                            <Columns>
                              <asp:TemplateField HeaderText="选择" >
                                    <ItemTemplate>
                                          <asp:CheckBox ID="chkID1" runat="server" />
                                          <asp:HiddenField ID="hdfRecordId" runat="server" Value='<%#Eval("RecordId") %>' />
                                    </ItemTemplate>
                                    
                                    <ItemStyle width="40px" HorizontalAlign="Center"  />
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="课程类型" SortExpression="ClassTypeName">
                                    <ItemTemplate>
                                        <asp:Label ID="lblClassTypeName" runat="server" Text='<%# Eval("ClassTypeName") %>'></asp:Label>
                                    </ItemTemplate>
                                  
                                </asp:TemplateField>
                                  <asp:TemplateField HeaderText="课程编号" SortExpression="ClassCode">
                                    <ItemTemplate>
                                        <asp:Label ID="lblClassCode" runat="server" Text='<%# Eval("ClassCode") %>'></asp:Label>
                                         <asp:HiddenField ID="hdfClassId" runat="server" Value='<%#Eval("ClassId") %>' />
                                     </ItemTemplate> 
                                      <EditItemTemplate>
                                         <asp:HiddenField ID="hdfClassId" runat="server" Value='<%#Eval("ClassId") %>' />
                                        <asp:TextBox ID="txtClassCode" Width="63px" runat="server"  Text='<%# Eval("ClassCode") %>'></asp:TextBox>
                                         <asp:Button ID="lbtnselectclass" ForeColor="red"  runat="server" Text="选择课程" CommandName="selectClass" />
                                    </EditItemTemplate>
                                </asp:TemplateField>
                               
                                <asp:TemplateField HeaderText="课程名称" SortExpression="ClassName">
                                    <ItemTemplate>
                                        <asp:Label ID="lblClassName" runat="server" Text='<%# Eval("ClassName") %>'></asp:Label>
                                        
                                    </ItemTemplate>
                               </asp:TemplateField>
                               <asp:TemplateField HeaderText="适合员工级别" SortExpression="EmpLevelName">
                                    <ItemTemplate>
                                        <asp:Label ID="lblEmpLevelName" runat="server" Text='<%# Eval("EmpLevelName") %>'></asp:Label>
                                        <asp:HiddenField ID="hdfEmpLevelId" runat="server" Value='<%#Eval("EmpLevelId") %>' />
                                    </ItemTemplate>
                                     <EditItemTemplate>
                                         <asp:HiddenField ID="hdfEmpLevelId" runat="server" Value='<%#Eval("EmpLevelId") %>' />
                                         <asp:DropDownList ID="ddlEmpLevel" runat="server" ></asp:DropDownList>
                                    </EditItemTemplate>
                               </asp:TemplateField>
                                <asp:TemplateField HeaderText="导师类型" SortExpression="TeacherTypeName">
                                    <ItemTemplate>
                                        <asp:Label ID="lblTeacherTypeName" runat="server" Text='<%# Eval("TeacherTypeName") %>'></asp:Label>
                                         <asp:HiddenField ID="hdfTeacherTypeId" runat="server" Value='<%#Eval("TeacherTypeId") %>' />
                                    </ItemTemplate>
                                      <EditItemTemplate>
                                        <asp:DropDownList ID="ddlTeacherType" runat="server"></asp:DropDownList>
                                        <asp:HiddenField ID="hdfTeacherTypeId" runat="server" Value='<%#Eval("TeacherTypeId") %>' />
                                    </EditItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="导师员工编号" SortExpression="TeacherCode">
                                    <ItemTemplate>
                                        <asp:Label ID="lblTeacherCode" runat="server" Text='<%# Eval("TeacherCode") %>'></asp:Label>
                                    </ItemTemplate>
                                      <EditItemTemplate>
                                        <asp:TextBox ID="txtTeacherCode" runat="server" Width="63px" Text='<%#Eval("TeacherCode") %>'></asp:TextBox>
                                      
                                       <asp:Button ID="lbtnselecteteacher" ForeColor="red"  runat="server" Text="选择导师" CommandName="selectTeacher" />
                                    </EditItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="导师姓名" SortExpression="TeacherName">
                                    <ItemTemplate>
                                        <asp:Label ID="lblTeacherName" runat="server" Text='<%# Eval("TeacherName") %>'></asp:Label>
                                    </ItemTemplate>
                                      <EditItemTemplate>
                                        <asp:TextBox ID="txtTeacherName" Width="50px" runat="server" Text='<%# Eval("TeacherName") %>' ></asp:TextBox>
                                    </EditItemTemplate>
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="课程小时数" SortExpression="Time">
                                    <ItemTemplate>
                                        <asp:Label ID="lblTime" runat="server" Text='<%# Eval("Time") %>'></asp:Label>
                                    </ItemTemplate>
                                     <EditItemTemplate>
                                        <asp:TextBox ID="txtTime" Width="30px" runat="server" Text='<%# Eval("Time") %>' ></asp:TextBox>
                                    </EditItemTemplate>
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="课程满意度" SortExpression="Satisficing">
                                    <ItemTemplate>
                                        <asp:Label ID="lblSatisficing" runat="server" Text='<%# Eval("Satisficing") %>'></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:TextBox ID="txtSatisficing" Width="30px" runat="server" Text='<%# Eval("Satisficing") %>' ></asp:TextBox>
                                    </EditItemTemplate>
                                </asp:TemplateField>
                                
                                 <asp:TemplateField HeaderText="培训人次" SortExpression="FactTimes">
                                    <ItemTemplate>
                                        <asp:Label ID="lblFactTimes" runat="server" Text='<%# Eval("FactTimes") %>'></asp:Label>
                                    </ItemTemplate>
                                     <EditItemTemplate>
                                        <asp:TextBox ID="txtFactTimes" Width="30px" runat="server" Text='<%# Eval("FactTimes") %>' ></asp:TextBox>
                                    </EditItemTemplate>
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="所属指挥中心" SortExpression="CenterName">
                                    <ItemTemplate>
                                        <asp:Label ID="lblCenterName" runat="server" Text='<%# Eval("CenterName") %>'></asp:Label>
                                        <asp:HiddenField ID="hdfCenterId" runat="server" Value='<%# Eval("CenterId") %>' />
                                    </ItemTemplate>

                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="开课城市" SortExpression="CityName">
                                    <ItemTemplate>
                                        <asp:Label ID="lblCityName" runat="server" Text='<%# Eval("CityName") %>'></asp:Label>
                                          <asp:HiddenField ID="hdfcityId" runat="server" Value='<%#Eval("CityId") %>' />
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:HiddenField ID="hdfcityId" runat="server" Value='<%#Eval("CityId") %>' />
                                         <asp:TextBox ID="txtcityName" Width="63px" runat="server" Text='<%#Eval("CityName") %>'></asp:TextBox>
                                       
                                         <asp:Button ID="lbtnselectCity" ForeColor="red"  runat="server" Text="选择开课城市" CommandName="selectCity" />
                                    </EditItemTemplate>
                                </asp:TemplateField>
								<asp:TemplateField HeaderText="开课时间" SortExpression="OpenTime">
                                    <ItemTemplate>
                                        <asp:Label ID="lblOpenTime" runat="server" Text='<%#Eval("OpenTime")%>'></asp:Label>
                                    </ItemTemplate>
                                     <EditItemTemplate>
                                        <asp:TextBox ID="txtOpenTime" Width="50px" runat="server" Text='<%# Eval("OpenTime") %>' ></asp:TextBox>
                                    </EditItemTemplate>
                                </asp:TemplateField>
								
                                <asp:CommandField   HeaderText="操作" ItemStyle-HorizontalAlign="Center" />
                                
                            </Columns>
                             <PagerSettings FirstPageText="" LastPageText="" NextPageText="" PreviousPageText="" />
                            <RowStyle Height="20px" BackColor="#FFFFFF"  ForeColor="#000000" />
                            <FooterStyle BackColor="#FFFFFF" Font-Bold="True" ForeColor="White" />
                            <EditRowStyle BackColor="#FCFDEE" />
                            <SelectedRowStyle BackColor="#FFFFFF"  ForeColor="#000000" />
                            <PagerStyle BackColor="#FCFDEE" ForeColor="White" HorizontalAlign="Center" />
                            <HeaderStyle BackColor="#FCFDEE"  ForeColor="000000" />
                            <AlternatingRowStyle BackColor="#FCFDEE" ForeColor="#000000" />
                                            </asp:GridView>
      </td>
   </tr>
   <tr bgcolor="#FAFAF1">
    <td height="28" style=" padding-left:14px">
	    <asp:CheckBox ID="selectAll" runat="server" Enabled="false"  Text="全选" 
            oncheckedchanged="selectAll_CheckedChanged" AutoPostBack="true" />&nbsp;
          <asp:Button class="coolbg" ID="Button1" Enabled="false" OnClientClick="return confirm('你确定要删除选择的预添加的课程吗?');" runat="server"
                          Text="批量删除"  OnClick="btnDeleteMass_Click" />
        &nbsp;
<asp:Button class="coolbg" ID="btnMass_Add" Enabled="false"  runat="server"
                          Text="将选择的预添加课程记录添加为课程记录"  OnClick="btnMassAdd_Click" />
    </td>
   
    </tr>
    </table>
  <div id="floatBoxBg2" runat="server" visible="false" style="width:100%;height:100%;background:#000;filter:alpha(opacity=50);opacity:0.5;position:absolute;top:0;left:0; z-index:10000"></div>
     <div  id="divSClass" runat="server"  visible="false" style="border:#ccc 2px solid;position:absolute;top:20%;left:20%; z-index:10000;width:600px; height:400px; overflow:auto; background-color:#eee">  
     <div style="height:25px;padding:0; margin:0;background:#D1DDAA;color:#000; width:100%;"><div style="float:left; color:#000; font-size:14px; font-weight:bold; width:545px">课程选择对话框</div><span>
         <asp:ImageButton ID="ibtncloseClassSelect" runat="server"  
             ImageUrl="../skin/images/frame/btn_close.gif" 
             onclick="ibtncloseClassSelect_Click" /></span></div>
            <table width='98%'  border='0' cellpadding='1' cellspacing='1' bgcolor='#CBD8AC' align="center" style="margin-top:8px">
              <tr bgcolor='#EEF4EA'>
                <td background='skin/images/wbg.gif' align='center'>
                  <table border='0' cellpadding='0' cellspacing='0' align='center'>
                    <tr>
                    <td width='70'>
                      关键字：
                    </td>
                    <td width='160'>
                        <asp:TextBox ID="txtkey" runat="server" Width="150px"></asp:TextBox>
                    </td>
                     
                    <td width="100px">
                <asp:ImageButton ID="ibtnSearchClass" runat="server" Width="45px" Height="20px" 
                            BorderStyle="None"  CssClass="np"  ImageUrl="../skin/images/frame/search.gif" 
                            onclick="ibtnSearchClass_Click"  />
                     
                    </td>
                   </tr>
                  </table>
                </td>
              </tr>
            </table>
 
   
  <div style="height:300px; overflow:auto">
    <table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px">
   
    <tr bgcolor="#E7E7E7">
	    <td height="24"  background="../skin/images/tbg.gif">课程列表
       </td>               
    </tr>
     
   <tr style="background-color:#ffffff">
    <td >
          <asp:GridView ID="GridView3" runat="server" Width="100%" CellPadding="4" BorderColor="#D1DDAA"  
                            AutoGenerateColumns="False" 
                            DataKeyNames="ClassId"  DataMember="Name" SelectedIndex="0" 
              OnRowDataBound="GridView3_RowDataBound" GridLines="Both" 
              AllowPaging="False" PageIndex="1" AllowSorting="true" 
              onsorting="GridView3_Sorting" onrowcommand="GridView3_RowCommand" 
           
              >
                            <Columns>
                                
                                 <asp:TemplateField HeaderText="课程编号" SortExpression="Code">
                                    <ItemTemplate>
                                        <asp:Label ID="lblCode" runat="server" Text='<%# Eval("Code") %>'></asp:Label>
                                    </ItemTemplate>
                                  
                                </asp:TemplateField>
                                  <asp:TemplateField HeaderText="课程类型" SortExpression="ClassTypeName">
                                    <ItemTemplate>
                                        <asp:Label ID="lblTypename" runat="server" Text='<%# Eval("ClassTypeName") %>'></asp:Label>
                                        <asp:HiddenField ID="hidTypeId" runat="server" Value='<%#Eval("ClassTypeId") %>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                               
                                <asp:TemplateField HeaderText="课程名称" SortExpression="Name">
                                    <ItemTemplate>
                                        <asp:Label ID="lblname" runat="server" Text='<%# Eval("Name") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="课程小时数" >
                                    <ItemTemplate>
                                        <asp:Label ID="lblTime" runat="server" Text='<%# Eval("Time") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="是否启用" >
                                    <ItemTemplate>
                                        <asp:Label ID="lblIsValid" runat="server" Text='<%# Eval("IsValidDesc") %>'></asp:Label>
                                        <asp:HiddenField ID="hdfIsValid" runat="server" Value='<%# Eval("IsValid") %>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                  <asp:TemplateField HeaderText="操作">
                                    <ItemTemplate>
                                       <asp:LinkButton runat="server" ID="lbtEdit" CommandArgument='<%#Eval("ClassId")%>'
                                    CommandName="sel" Text="选择"  ></asp:LinkButton>
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center"  Width="40px"/>
                                    <HeaderStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                            </Columns>
                            <PagerSettings FirstPageText="" LastPageText="" NextPageText="" PreviousPageText="" />
                            <RowStyle Height="20px" BackColor="#FFFFFF"  ForeColor="#000000" />
                            <FooterStyle BackColor="#FFFFFF" Font-Bold="True" ForeColor="White" />
                            <EditRowStyle BackColor="#FCFDEE" />
                            <SelectedRowStyle BackColor="#FFFFFF"  ForeColor="#000000" />
                            <PagerStyle BackColor="#FCFDEE" ForeColor="White" HorizontalAlign="Center" />
                            <HeaderStyle BackColor="#FCFDEE"  ForeColor="000000" />
                            <AlternatingRowStyle BackColor="#FCFDEE" ForeColor="#000000" />
                            
                        </asp:GridView>
       </td>
       </tr>
       </table
       </div>
          <div style="height:36px; background-color:#EEF4EA; text-align:center">          <webdiyer:AspNetPager ID="pager2" runat="server" OnPageChanged="pager2_PageChanged"
                        PageSize="8">
                    </webdiyer:AspNetPager>
           </div>
    
   
     
  </div>
  
    <div id="floatBoxBg1" runat="server" visible="false" style="width:100%;height:100%;background:#000;filter:alpha(opacity=50);opacity:0.5;position:absolute;top:0;left:0; z-index:10000"></div>
     <div  id="divSTeacher" runat="server"  visible="false" style="border:#ccc 2px solid;position:absolute;top:20%;left:20%; z-index:10000;width:600px; height:400px; overflow:auto; background-color:#eee">  
     <div style="height:25px;padding:0; margin:0;background:#D1DDAA;color:#000; width:100%;"><div style="float:left; color:#000; font-size:14px; font-weight:bold; width:565px">导师选择对话框</div><span>
         <asp:ImageButton ID="ibtncloseTeacherSelect" runat="server"  
             ImageUrl="../skin/images/frame/btn_close.gif" 
             onclick="ibtncloseTeacherSelect_Click"/></span></div>
                 <table width='98%'  border='0' cellpadding='1' cellspacing='1' bgcolor='#CBD8AC' align="center" style="margin-top:8px">
              <tr bgcolor='#EEF4EA'>
                <td background='skin/images/wbg.gif' align='center'>
                  <table border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td width='70'>
                      关键字：
                    </td>
                    <td width='160'>
                        <asp:TextBox ID="txtkeyword" runat="server" Width="150px"></asp:TextBox>
                    </td>
                     
                    <td width="100px">
                        <asp:ImageButton ID="ibtnsearch" runat="server" Width="45px" Height="20px" 
                            BorderStyle="None"  CssClass="np"  ImageUrl="../skin/images/frame/search.gif" 
                            onclick="ibtnsearch_Click"  />
                     
                    </td>
                      
                    <td>
              
                    </td>
                   </tr>
                  </table>
                </td>
              </tr>
            </table>
     <div style="height:320px; overflow:auto">     
    <table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px;">
     <tr bgcolor="#E7E7E7" style="border-bottom:none">
	    <td height="24"  background="../skin/images/tbg.gif">导师列表 </td>
    </tr>
     
    <tr style="background-color:#ffffff">
    <td >
          <asp:GridView ID="grdvTeacher" runat="server" Width="100%" CellPadding="4" BorderColor="#D1DDAA"  
                            AutoGenerateColumns="False" 
                            DataKeyNames="EmpId"  DataMember="Name" SelectedIndex="0" 
              OnRowDataBound="grdvTeacher_RowDataBound" GridLines="Both" 
              AllowPaging="False" PageIndex="1"  onrowcommand="grdvTeacher_RowCommand" >
                            <Columns>
                                 <asp:TemplateField HeaderText="所在部门" >
                                    <ItemTemplate>
                                        <asp:Label ID="lblDeptName" runat="server" Text='<%# Eval("DeptName") %>'></asp:Label>
                                    </ItemTemplate>
                                  
                                      <ItemStyle Width="20%" />
                                </asp:TemplateField>
								  <asp:TemplateField HeaderText="导师员工编号" >
                                    <ItemTemplate>
                                        <asp:Label ID="lblcode" runat="server" Text='<%# Eval("Code") %>'></asp:Label>
                                    </ItemTemplate>
                                   
                                     <ItemStyle Width="20%" />
                                </asp:TemplateField>
								 <asp:TemplateField HeaderText="导师姓名" >
                                    <ItemTemplate>
                                        <asp:Label ID="lblname" runat="server" Text='<%# Eval("Name") %>'></asp:Label>
                                    </ItemTemplate>
                                   
                                     <ItemStyle Width="20%" />
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="导师职位">
                                    <ItemTemplate>
                                        <asp:Label ID="lblJobName" runat="server" Text='<%# Eval("JobName") %>'></asp:Label>
                                    </ItemTemplate>
                                   
                                     <ItemStyle Width="20%" />
                                </asp:TemplateField>
                                
                                <asp:TemplateField HeaderText="操作">
                                    <ItemTemplate>
                                       <asp:LinkButton runat="server" ID="lbtEdit" CommandArgument='<%#Eval("EmpId")%>'
                                    CommandName="sel" Text="选择"  ></asp:LinkButton>
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center"  Width="40px" />
                                    <HeaderStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                            </Columns>
                            <PagerSettings FirstPageText="" LastPageText="" NextPageText="" PreviousPageText="" />
                            <RowStyle Height="20px" BackColor="#FFFFFF" ForeColor="#000000" />
                            <FooterStyle BackColor="#FFFFFF" Font-Bold="True" ForeColor="White" />
                            <EditRowStyle BackColor="#FCFDEE" />
                            <SelectedRowStyle BackColor="#FFFFFF"  ForeColor="#000000" />
                            <PagerStyle BackColor="#FCFDEE" ForeColor="White" HorizontalAlign="Center" />
                            <HeaderStyle BackColor="#FCFDEE"  ForeColor="000000" />
                            <AlternatingRowStyle BackColor="#FCFDEE" ForeColor="#000000" />
                            
                        </asp:GridView>
       </td>
       </tr>
          
    </table>
     </div>
  </div>
 
   <div id="floatBoxBg3" runat="server" visible="false" style="width:100%;height:100%;background:#000;filter:alpha(opacity=50);opacity:0.5;position:absolute;top:0;left:0; z-index:10000"></div>
     <div  id="divSCity" runat="server"  visible="false" style="border:#ccc 2px solid;position:absolute;top:20%;left:20%; z-index:10000;width:600px; height:400px; overflow:auto; background-color:#eee">  
     <div style="height:25px;padding:0; margin:0;background:#D1DDAA;color:#000; width:100%;"><div style="float:left; color:#000; font-size:14px; font-weight:bold; width:565px"> 开课城市选择对话框</div><span>
         <asp:ImageButton ID="ibtncloseCitySelect" runat="server"  
             ImageUrl="../skin/images/frame/btn_close.gif" 
             onclick="ibtncloseCitySelect_Click"/></span></div>
                 <table width='98%'  border='0' cellpadding='1' cellspacing='1' bgcolor='#CBD8AC' align="center" style="margin-top:8px">
              <tr bgcolor='#EEF4EA'>
                <td background='skin/images/wbg.gif' align='center'>
                  <table border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td width='70'>
                      关键字：
                    </td>
                    <td width='160'>
                        <asp:TextBox ID="txtckey" runat="server" Width="150px"></asp:TextBox>
                    </td>
                     
                    <td width="100px">
                        <asp:ImageButton ID="ibtnsearchCity" runat="server" Width="45px" Height="20px" 
                            BorderStyle="None"  CssClass="np"  ImageUrl="../skin/images/frame/search.gif" 
                            onclick="ibtnsearchCity_Click"  />
                     
                    </td>
                      
                    <td>
              
                    </td>
                   </tr>
                  </table>
                </td>
              </tr>
            </table>
     <div  style=" height:300px; overflow:auto">     
    <table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px;">
     <tr bgcolor="#E7E7E7" style="border-bottom:none">
	    <td height="24"  background="../skin/images/tbg.gif">城市列表 </td>
    </tr>
     
    <tr style="background-color:#ffffff">
    <td >
          <asp:GridView ID="grdvCity" runat="server" Width="100%" CellPadding="4" BorderColor="#D1DDAA"  
                            AutoGenerateColumns="False" 
                            DataKeyNames="CityId"  DataMember="Name" SelectedIndex="0" 
              OnRowDataBound="grdvCity_RowDataBound" GridLines="Both" 
              AllowPaging="False" PageIndex="1" AllowSorting="true" 
              onsorting="grdvCity_Sorting"  onrowcommand="grdvCity_RowCommand" >
                            <Columns>
                                 <asp:TemplateField HeaderText="所属指挥中心" SortExpression="CenterName">
                                    <ItemTemplate>
                                        <asp:Label ID="lblCenterName" runat="server" Text='<%# Eval("CenterName") %>'></asp:Label>
                                        <asp:HiddenField ID="hdfcenterId" runat="server" Value='<%#Eval("CenterId") %>' />
                                    </ItemTemplate>
                                      <ItemStyle Width="40%" />
                                </asp:TemplateField>
								  <asp:TemplateField HeaderText="城市名称" SortExpression="Name">
                                    <ItemTemplate>
                                        <asp:Label ID="lblname" runat="server" Text='<%# Eval("Name") %>'></asp:Label>
                                    </ItemTemplate>
                                   
                                     <ItemStyle Width="40%" />
                                </asp:TemplateField>
								

                                <asp:TemplateField HeaderText="操作">
                                    <ItemTemplate>
                                       <asp:LinkButton runat="server" ID="lbtEdit" CommandArgument='<%#Eval("CityId")%>'
                                    CommandName="sel" Text="选择"  ></asp:LinkButton>
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center"  Width="40px" />
                                    <HeaderStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                            </Columns>
                            <PagerSettings FirstPageText="" LastPageText="" NextPageText="" PreviousPageText="" />
                            <RowStyle Height="20px" BackColor="#FFFFFF" ForeColor="#000000" />
                            <FooterStyle BackColor="#FFFFFF" Font-Bold="True" ForeColor="White" />
                            <EditRowStyle BackColor="#FCFDEE" />
                            <SelectedRowStyle BackColor="#FFFFFF"  ForeColor="#000000" />
                            <PagerStyle BackColor="#FCFDEE" ForeColor="White" HorizontalAlign="Center" />
                            <HeaderStyle BackColor="#FCFDEE"  ForeColor="000000" />
                            <AlternatingRowStyle BackColor="#FCFDEE" ForeColor="#000000" />
                            
                        </asp:GridView>
       </td>
       </tr>
       </table>
       </div>
          
           <div style="height:36px; background-color:#EEF4EA; text-align:center">
                
                    <webdiyer:AspNetPager ID="pager4" runat="server" OnPageChanged="pager4_PageChanged"
                        PageSize="8">
                    </webdiyer:AspNetPager>
                
            </div>
    
     
  </div>
   </ContentTemplate>
   </asp:UpdatePanel> 
    </form>
</body>
</html>
